package com.cazor.mg.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.cazor.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.cazor.common.core.domain.BaseEntity;

/**
 * 设备对象 mg_device
 *
 * @author cazor
 * @date 2023-11-23
 */
@TableName("mg_device")
public class MgDevice
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    private Date createTime;

    private Date updateTime;

    private String remark;

    /** 设备编码 */
    @Excel(name = "设备编码")
    private String deviceCode;

    /** 设备名称 */
    @Excel(name = "设备名称")
    private String deviceName;

    /** 设备状态 2-离线 3-在线 */
    @Excel(name = "设备状态 2-离线 3-在线")
    private Integer deviceStatus;

    /** 设备类型 */
    @Excel(name = "设备类型")
    private Integer deviceType;

    /** 所属项目 */
    @Excel(name = "所属项目")
    private String subProject;

    /** 所属公司 */
    @Excel(name = "所属公司")
    private String subCompany;

    /** 电源 */
    @Excel(name = "电源")
    private Integer power;

    /** 电量 */
    @Excel(name = "电量")
    private String electric;

    /** 电压 */
    @Excel(name = "电压")
    private String voltage;

    /** 工作温度 */
    @Excel(name = "工作温度")
    private String tempWork;

    /** 相对温度 */
    @Excel(name = "相对温度")
    private String humidity;

    /** 型号名称 */
    @Excel(name = "型号名称")
    private String modelName;

    /** 出厂编码 */
    @Excel(name = "出厂编码")
    private String producerCode;

    /** 设备序号 */
    @Excel(name = "设备序号")
    private Integer orderNum;

    /** 管理责任人 */
    @Excel(name = "管理责任人")
    private String managerName;

    /** 管理责任人电话 */
    @Excel(name = "管理责任人电话")
    private String managerPhone;

    /** 建卡日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "建卡日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cardCreatedDate;

    /** 验收日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "验收日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date acceptDate;

    /** 启用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "启用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 设备图片 */
    @Excel(name = "设备图片")
    private String devicePic;

    /** 经度 */
    @Excel(name = "经度")
    private String longitude;

    /** 纬度 */
    @Excel(name = "纬度")
    private String latitude;

    /** 分组id */
    @Excel(name = "分组id")
    private Integer groupId;

    /** 分组位置【1.三点钟 2.九点钟 3.十二点钟】 */
    @Excel(name = "分组位置【1.三点钟 2.九点钟 3.十二点钟】")
    private Integer groupAddress;

    /** 是否报警 */
    @Excel(name = "是否报警")
    private Integer isCall;

    /** 间隔天数 */
    @Excel(name = "间隔天数")
    private Integer intervalDays;

    /** 报警阈值 */
    @Excel(name = "报警阈值")
    private BigDecimal callThreshold;

    /** 预警阈值 */
    @Excel(name = "预警阈值")
    private BigDecimal earlyThreshold;

    /** 温度系数 */
    @Excel(name = "温度系数")
    private BigDecimal tempCoefficient;

    /** 线膨胀系数 */
    @Excel(name = "线膨胀系数")
    private BigDecimal linearExpansion;

    /** 灵敏度 */
    @Excel(name = "灵敏度")
    private BigDecimal sensitivity;

    /** 基准值 */
    @Excel(name = "基准值")
    private BigDecimal referenceValue;

    /** 温度基准值 */
    @Excel(name = "温度基准值")
    private BigDecimal tempReference;

    /** 创建人id */
    @Excel(name = "创建人id")
    private Integer createId;

    /** 创建人名称 */
    @Excel(name = "创建人名称")
    private String createName;

    /** 修改人id */
    @Excel(name = "修改人id")
    private Integer updateId;

    /** 修改人名称 */
    @Excel(name = "修改人名称")
    private String updateName;

    /** 是否删除【0.否 1.是】 */
    @Excel(name = "是否删除【0.否 1.是】")
    private Integer isFlag;

    /** x坐标 */
    @Excel(name = "x坐标")
    private BigDecimal xCoord;

    /** y坐标 */
    @Excel(name = "y坐标")
    private BigDecimal yCoord;

    /** z坐标 */
    @Excel(name = "z坐标")
    private BigDecimal zCoord;

    /** 初始值 */
    @Excel(name = "初始值")
    private BigDecimal initValue;

    /** gnss 选取x平均值 */
    @Excel(name = "gnss 选取x平均值")
    private BigDecimal xInitValue;

    /** gnss 选取y平均值 */
    @Excel(name = "gnss 选取y平均值")
    private BigDecimal yInitValue;

    /** gnss 选取h平均值 */
    @Excel(name = "gnss 选取h平均值")
    private BigDecimal hInitValue;

    /** gnss 选取作为稳定值的日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "gnss 选取作为稳定值的日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date initDate;

    /** 通道号 */
    @Excel(name = "通道号")
    private String channelNo;

    /** 初始温度 */
    @Excel(name = "初始温度")
    private BigDecimal initTemperature;

    /** 初始模量 */
    @Excel(name = "初始模量")
    private BigDecimal initModulus;

    /** 加速度传感器x2初始值 */
    @Excel(name = "加速度传感器x2初始值")
    private BigDecimal x2InitValue;

    /** 加速度传感器y2初始值 */
    @Excel(name = "加速度传感器y2初始值")
    private BigDecimal y2InitValue;

    /** 加速度传感器z2初始值 */
    @Excel(name = "加速度传感器z2初始值")
    private BigDecimal z2InitValue;

    /** 二期gnss对应code */
    @Excel(name = "二期gnss对应code")
    private String gnssCode;

    /** 二期gnss基站code */
    @Excel(name = "二期gnss基站code")
    private String jzGnssCode;

    /** 32通道温度传感器编号 */
    @Excel(name = "32通道温度传感器编号")
    private String tempDeviceNo;

    /** 32通道应变传感器编号 */
    @Excel(name = "32通道应变传感器编号")
    private String ybDeviceNo;

    /** 附加参数 */
    @Excel(name = "附加参数")
    private String extendParams;

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setDeviceCode(String deviceCode)
    {
        this.deviceCode = deviceCode;
    }

    public String getDeviceCode()
    {
        return deviceCode;
    }
    public void setDeviceName(String deviceName)
    {
        this.deviceName = deviceName;
    }

    public String getDeviceName()
    {
        return deviceName;
    }
    public void setDeviceStatus(Integer deviceStatus)
    {
        this.deviceStatus = deviceStatus;
    }

    public Integer getDeviceStatus()
    {
        return deviceStatus;
    }
    public void setDeviceType(Integer deviceType)
    {
        this.deviceType = deviceType;
    }

    public Integer getDeviceType()
    {
        return deviceType;
    }
    public void setSubProject(String subProject)
    {
        this.subProject = subProject;
    }

    public String getSubProject()
    {
        return subProject;
    }
    public void setSubCompany(String subCompany)
    {
        this.subCompany = subCompany;
    }

    public String getSubCompany()
    {
        return subCompany;
    }
    public void setPower(Integer power)
    {
        this.power = power;
    }

    public Integer getPower()
    {
        return power;
    }
    public void setElectric(String electric)
    {
        this.electric = electric;
    }

    public String getElectric()
    {
        return electric;
    }
    public void setVoltage(String voltage)
    {
        this.voltage = voltage;
    }

    public String getVoltage()
    {
        return voltage;
    }
    public void setTempWork(String tempWork)
    {
        this.tempWork = tempWork;
    }

    public String getTempWork()
    {
        return tempWork;
    }
    public void setHumidity(String humidity)
    {
        this.humidity = humidity;
    }

    public String getHumidity()
    {
        return humidity;
    }
    public void setModelName(String modelName)
    {
        this.modelName = modelName;
    }

    public String getModelName()
    {
        return modelName;
    }
    public void setProducerCode(String producerCode)
    {
        this.producerCode = producerCode;
    }

    public String getProducerCode()
    {
        return producerCode;
    }
    public void setOrderNum(Integer orderNum)
    {
        this.orderNum = orderNum;
    }

    public Integer getOrderNum()
    {
        return orderNum;
    }
    public void setManagerName(String managerName)
    {
        this.managerName = managerName;
    }

    public String getManagerName()
    {
        return managerName;
    }
    public void setManagerPhone(String managerPhone)
    {
        this.managerPhone = managerPhone;
    }

    public String getManagerPhone()
    {
        return managerPhone;
    }
    public void setCardCreatedDate(Date cardCreatedDate)
    {
        this.cardCreatedDate = cardCreatedDate;
    }

    public Date getCardCreatedDate()
    {
        return cardCreatedDate;
    }
    public void setAcceptDate(Date acceptDate)
    {
        this.acceptDate = acceptDate;
    }

    public Date getAcceptDate()
    {
        return acceptDate;
    }
    public void setStartDate(Date startDate)
    {
        this.startDate = startDate;
    }

    public Date getStartDate()
    {
        return startDate;
    }
    public void setDevicePic(String devicePic)
    {
        this.devicePic = devicePic;
    }

    public String getDevicePic()
    {
        return devicePic;
    }
    public void setLongitude(String longitude)
    {
        this.longitude = longitude;
    }

    public String getLongitude()
    {
        return longitude;
    }
    public void setLatitude(String latitude)
    {
        this.latitude = latitude;
    }

    public String getLatitude()
    {
        return latitude;
    }
    public void setGroupId(Integer groupId)
    {
        this.groupId = groupId;
    }

    public Integer getGroupId()
    {
        return groupId;
    }
    public void setGroupAddress(Integer groupAddress)
    {
        this.groupAddress = groupAddress;
    }

    public Integer getGroupAddress()
    {
        return groupAddress;
    }
    public void setIsCall(Integer isCall)
    {
        this.isCall = isCall;
    }

    public Integer getIsCall()
    {
        return isCall;
    }
    public void setIntervalDays(Integer intervalDays)
    {
        this.intervalDays = intervalDays;
    }

    public Integer getIntervalDays()
    {
        return intervalDays;
    }
    public void setCallThreshold(BigDecimal callThreshold)
    {
        this.callThreshold = callThreshold;
    }

    public BigDecimal getCallThreshold()
    {
        return callThreshold;
    }
    public void setEarlyThreshold(BigDecimal earlyThreshold)
    {
        this.earlyThreshold = earlyThreshold;
    }

    public BigDecimal getEarlyThreshold()
    {
        return earlyThreshold;
    }
    public void setTempCoefficient(BigDecimal tempCoefficient)
    {
        this.tempCoefficient = tempCoefficient;
    }

    public BigDecimal getTempCoefficient()
    {
        return tempCoefficient;
    }
    public void setLinearExpansion(BigDecimal linearExpansion)
    {
        this.linearExpansion = linearExpansion;
    }

    public BigDecimal getLinearExpansion()
    {
        return linearExpansion;
    }
    public void setSensitivity(BigDecimal sensitivity)
    {
        this.sensitivity = sensitivity;
    }

    public BigDecimal getSensitivity()
    {
        return sensitivity;
    }
    public void setReferenceValue(BigDecimal referenceValue)
    {
        this.referenceValue = referenceValue;
    }

    public BigDecimal getReferenceValue()
    {
        return referenceValue;
    }
    public void setTempReference(BigDecimal tempReference)
    {
        this.tempReference = tempReference;
    }

    public BigDecimal getTempReference()
    {
        return tempReference;
    }
    public void setCreateId(Integer createId)
    {
        this.createId = createId;
    }

    public Integer getCreateId()
    {
        return createId;
    }
    public void setCreateName(String createName)
    {
        this.createName = createName;
    }

    public String getCreateName()
    {
        return createName;
    }
    public void setUpdateId(Integer updateId)
    {
        this.updateId = updateId;
    }

    public Integer getUpdateId()
    {
        return updateId;
    }
    public void setUpdateName(String updateName)
    {
        this.updateName = updateName;
    }

    public String getUpdateName()
    {
        return updateName;
    }
    public void setIsFlag(Integer isFlag)
    {
        this.isFlag = isFlag;
    }

    public Integer getIsFlag()
    {
        return isFlag;
    }
    public void setxCoord(BigDecimal xCoord)
    {
        this.xCoord = xCoord;
    }

    public BigDecimal getxCoord()
    {
        return xCoord;
    }
    public void setyCoord(BigDecimal yCoord)
    {
        this.yCoord = yCoord;
    }

    public BigDecimal getyCoord()
    {
        return yCoord;
    }
    public void setzCoord(BigDecimal zCoord)
    {
        this.zCoord = zCoord;
    }

    public BigDecimal getzCoord()
    {
        return zCoord;
    }
    public void setInitValue(BigDecimal initValue)
    {
        this.initValue = initValue;
    }

    public BigDecimal getInitValue()
    {
        return initValue;
    }
    public void setxInitValue(BigDecimal xInitValue)
    {
        this.xInitValue = xInitValue;
    }

    public BigDecimal getxInitValue()
    {
        return xInitValue;
    }
    public void setyInitValue(BigDecimal yInitValue)
    {
        this.yInitValue = yInitValue;
    }

    public BigDecimal getyInitValue()
    {
        return yInitValue;
    }
    public void sethInitValue(BigDecimal hInitValue)
    {
        this.hInitValue = hInitValue;
    }

    public BigDecimal gethInitValue()
    {
        return hInitValue;
    }
    public void setInitDate(Date initDate)
    {
        this.initDate = initDate;
    }

    public Date getInitDate()
    {
        return initDate;
    }
    public void setChannelNo(String channelNo)
    {
        this.channelNo = channelNo;
    }

    public String getChannelNo()
    {
        return channelNo;
    }
    public void setInitTemperature(BigDecimal initTemperature)
    {
        this.initTemperature = initTemperature;
    }

    public BigDecimal getInitTemperature()
    {
        return initTemperature;
    }
    public void setInitModulus(BigDecimal initModulus)
    {
        this.initModulus = initModulus;
    }

    public BigDecimal getInitModulus()
    {
        return initModulus;
    }
    public void setX2InitValue(BigDecimal x2InitValue)
    {
        this.x2InitValue = x2InitValue;
    }

    public BigDecimal getX2InitValue()
    {
        return x2InitValue;
    }
    public void setY2InitValue(BigDecimal y2InitValue)
    {
        this.y2InitValue = y2InitValue;
    }

    public BigDecimal getY2InitValue()
    {
        return y2InitValue;
    }
    public void setZ2InitValue(BigDecimal z2InitValue)
    {
        this.z2InitValue = z2InitValue;
    }

    public BigDecimal getZ2InitValue()
    {
        return z2InitValue;
    }
    public void setGnssCode(String gnssCode)
    {
        this.gnssCode = gnssCode;
    }

    public String getGnssCode()
    {
        return gnssCode;
    }
    public void setJzGnssCode(String jzGnssCode)
    {
        this.jzGnssCode = jzGnssCode;
    }

    public String getJzGnssCode()
    {
        return jzGnssCode;
    }
    public void setTempDeviceNo(String tempDeviceNo)
    {
        this.tempDeviceNo = tempDeviceNo;
    }

    public String getTempDeviceNo()
    {
        return tempDeviceNo;
    }
    public void setYbDeviceNo(String ybDeviceNo)
    {
        this.ybDeviceNo = ybDeviceNo;
    }

    public String getYbDeviceNo()
    {
        return ybDeviceNo;
    }
    public void setExtendParams(String extendParams)
    {
        this.extendParams = extendParams;
    }

    public String getExtendParams()
    {
        return extendParams;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("deviceCode", getDeviceCode())
                .append("deviceName", getDeviceName())
                .append("deviceStatus", getDeviceStatus())
                .append("deviceType", getDeviceType())
                .append("subProject", getSubProject())
                .append("subCompany", getSubCompany())
                .append("power", getPower())
                .append("electric", getElectric())
                .append("voltage", getVoltage())
                .append("tempWork", getTempWork())
                .append("humidity", getHumidity())
                .append("modelName", getModelName())
                .append("producerCode", getProducerCode())
                .append("orderNum", getOrderNum())
                .append("managerName", getManagerName())
                .append("managerPhone", getManagerPhone())
                .append("cardCreatedDate", getCardCreatedDate())
                .append("acceptDate", getAcceptDate())
                .append("startDate", getStartDate())
                .append("devicePic", getDevicePic())
                .append("longitude", getLongitude())
                .append("latitude", getLatitude())
                .append("groupId", getGroupId())
                .append("groupAddress", getGroupAddress())
                .append("isCall", getIsCall())
                .append("intervalDays", getIntervalDays())
                .append("callThreshold", getCallThreshold())
                .append("earlyThreshold", getEarlyThreshold())
                .append("tempCoefficient", getTempCoefficient())
                .append("linearExpansion", getLinearExpansion())
                .append("sensitivity", getSensitivity())
                .append("referenceValue", getReferenceValue())
                .append("tempReference", getTempReference())
                .append("remark", getRemark())
                .append("createId", getCreateId())
                .append("createName", getCreateName())
                .append("createTime", getCreateTime())
                .append("updateId", getUpdateId())
                .append("updateName", getUpdateName())
                .append("updateTime", getUpdateTime())
                .append("isFlag", getIsFlag())
                .append("xCoord", getxCoord())
                .append("yCoord", getyCoord())
                .append("zCoord", getzCoord())
                .append("initValue", getInitValue())
                .append("xInitValue", getxInitValue())
                .append("yInitValue", getyInitValue())
                .append("hInitValue", gethInitValue())
                .append("initDate", getInitDate())
                .append("channelNo", getChannelNo())
                .append("initTemperature", getInitTemperature())
                .append("initModulus", getInitModulus())
                .append("x2InitValue", getX2InitValue())
                .append("y2InitValue", getY2InitValue())
                .append("z2InitValue", getZ2InitValue())
                .append("gnssCode", getGnssCode())
                .append("jzGnssCode", getJzGnssCode())
                .append("tempDeviceNo", getTempDeviceNo())
                .append("ybDeviceNo", getYbDeviceNo())
                .append("extendParams", getExtendParams())
                .toString();
    }
}
